package easymall.dao;

import easymall.po.Products;
import easymall.pojo.MyPage;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
public interface ProductsDao {

	
	public List<Products> prodlist(Map<String, Object> map);//查询商品
	public Products oneProduct(String pid);
	public List<Products> proclass(Integer category);
	public Object findByImgurl(String imgurl);
	
	public void save(Products products); //添加
	public int updatePruduct(Products products); //更新
	public int delProduct(String id); //删除
	public List<Products> getProductsByPage(MyPage mypage); //根据页号获取商品
	public int getProductsCount(); //商品数量
}
